import { Controller, Get, Query } from '@nestjs/common';
import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger';
import { IndustryService } from './industry.service';
import { FindIndustryDto } from './industry.dto';

@ApiTags('行业管理')
@ApiBearerAuth()
@Controller('industry')
export class IndustryController {
  constructor(private industryService: IndustryService) {}

  @Get('list')
  @ApiOperation({ summary: '获取行业列表' })
  async getIndustryList(@Query() query: FindIndustryDto) {
    return await this.industryService.find(query);
  }
}
